import React from 'react';
import ReactDOM from 'react-dom';
import mirror, {actions, connect,Link} from 'mirrorx';
import { FormattedMessage} from 'react-intl';

class App extends React.Component { 
	constructor(props) {
        super(props);       
        
        this.policyId = T.urlQuery("id");
	}

	componentDidMount(){
		
    }   
	
	render() {
		return (<div className="tac success-page mb30">
        <div className="success-wrap">
            <img src="/assets/images/success.png" />
        </div>
        <div className="f36">
        <FormattedMessage id='pay_success' defaultMessage='支付成功'/>
        </div>
        <div className="mt30 fc9 f30">
        <FormattedMessage id='order_number' defaultMessage='订單號'/>：{this.policyId }
        </div>
        <div className="btn-div">
            <div className="page-btn-1 f26" onClick={()=>actions.routing.push({pathname:"myPolicy"})}>
            <FormattedMessage id='view_order' defaultMessage='查看订單'/>
            </div>

            <div className="page-btn-3 f28" style={{marginTop:'30px'}} onClick={()=>actions.routing.push({pathname:"/"})}>
            <FormattedMessage id='back_home' defaultMessage='返回首頁'/>
            </div>
        </div>
    </div>)
	}
}

export default App;   